package com.ourteam.product.model.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:00:53
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductModelServiceTemplateItem implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long serviceTemplateId;

    /**
     * Attribute serviceTemplateId Be Seted Falg
     */
    private boolean serviceTemplateIdSetted = false;

    /**
    * Attribute serviceTemplateId is Null Falg
    */
    private boolean serviceTemplateIdNull = false;
    private String templateItemName;

    /**
     * Attribute templateItemName Be Seted Falg
     */
    private boolean templateItemNameSetted = false;

    /**
    * Attribute templateItemName is Null Falg
    */
    private boolean templateItemNameNull = false;
    private String serviceNameTemplate;

    /**
     * Attribute serviceNameTemplate Be Seted Falg
     */
    private boolean serviceNameTemplateSetted = false;

    /**
    * Attribute serviceNameTemplate is Null Falg
    */
    private boolean serviceNameTemplateNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;

    public ProductModelServiceTemplateItem() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get serviceTemplateId
         *
         * @return long
         */
    final public long getServiceTemplateId() {
        return serviceTemplateId;
    }

    /**
     * Set serviceTemplateId
     *
     * @param long
     */
    final public void setServiceTemplateId(long serviceTemplateId) {
        this.serviceTemplateId = serviceTemplateId;

        this.serviceTemplateIdSetted = true;

        this.setServiceTemplateIdNull(false);
    }

    /**
     * Get serviceTemplateId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isServiceTemplateIdSetted() {
        return this.serviceTemplateIdSetted;
    }

    /**
     * Set serviceTemplateId Null
     *
     */
    final public void setServiceTemplateIdNull() {
        this.serviceTemplateIdNull = true;
    }

    final public void setServiceTemplateIdNull(boolean aNullFlag) {
        this.serviceTemplateIdNull = aNullFlag;
    }

    final public boolean isServiceTemplateIdNull() {
        return this.serviceTemplateIdNull;
    }

    /**
         * Get templateItemName
         *
         * @return String
         */
    final public String getTemplateItemName() {
        if (isTemplateItemNameNull()) {
            return null;
        } else {
            return StringUtils.trim(templateItemName);
        }
    }

    /**
     * Set templateItemName
     *
     * @param String
     */
    final public void setTemplateItemName(String templateItemName) {
        this.templateItemName = StringUtils.trim(templateItemName);

        this.templateItemNameSetted = true;

        this.setTemplateItemNameNull(this.templateItemName == null);
    }

    /**
     * Get templateItemName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTemplateItemNameSetted() {
        return this.templateItemNameSetted;
    }

    /**
     * Set templateItemName Null
     *
     */
    final public void setTemplateItemNameNull() {
        this.templateItemNameNull = true;
    }

    final public void setTemplateItemNameNull(boolean aNullFlag) {
        this.templateItemNameNull = aNullFlag;
    }

    final public boolean isTemplateItemNameNull() {
        return this.templateItemNameNull;
    }

    /**
         * Get serviceNameTemplate
         *
         * @return String
         */
    final public String getServiceNameTemplate() {
        if (isServiceNameTemplateNull()) {
            return null;
        } else {
            return StringUtils.trim(serviceNameTemplate);
        }
    }

    /**
     * Set serviceNameTemplate
     *
     * @param String
     */
    final public void setServiceNameTemplate(String serviceNameTemplate) {
        this.serviceNameTemplate = StringUtils.trim(serviceNameTemplate);

        this.serviceNameTemplateSetted = true;

        this.setServiceNameTemplateNull(this.serviceNameTemplate == null);
    }

    /**
     * Get serviceNameTemplate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isServiceNameTemplateSetted() {
        return this.serviceNameTemplateSetted;
    }

    /**
     * Set serviceNameTemplate Null
     *
     */
    final public void setServiceNameTemplateNull() {
        this.serviceNameTemplateNull = true;
    }

    final public void setServiceNameTemplateNull(boolean aNullFlag) {
        this.serviceNameTemplateNull = aNullFlag;
    }

    final public boolean isServiceNameTemplateNull() {
        return this.serviceNameTemplateNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductModelServiceTemplateItem) == false) {
            return false;
        }

        ProductModelServiceTemplateItem other = (ProductModelServiceTemplateItem) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("serviceTemplateId=");
        buffer.append(this.serviceTemplateId);

        buffer.append("templateItemName=");
        buffer.append(this.templateItemName);

        buffer.append("serviceNameTemplate=");
        buffer.append(this.serviceNameTemplate);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("]");

        return buffer.toString();
    }
}
